package leetcode.code005;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution005 implements IDebug {

	public abstract String longestPalindrome(String s);

	private void debug(String s, String e) {
		String r = this.longestPalindrome(s);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug1() {
		String s = "babad";
		String e = "bab";
		this.debug(s, e);
	}

	@Override
	public void debug2() {
		String s = "a";
		String e = "a";
		this.debug(s, e);
	}

	@Override
	public void debug3() {
		String s = "cbbd";
		String e = "bb";
		this.debug(s, e);
	}

	@Override
	public void debug4() {
		String s = "ac";
		String e = "a";
		this.debug(s, e);
	}

}
